<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        // js数据类型：
        // 基本类型：string number boolean null undefinded
        // 引用类型：object(Array Date Object Math Function......)

        var obj = {
            name: 'lisi',
            age: 20
        }
        var obj1 = {
            name: 'lisi',
            age: 20
        }
        console.log(obj === obj1) // false

        var str1 = JSON.stringify(obj)
        var str2 = JSON.stringify(obj1)
        console.log(str1 === str2) // true
    </script>
</body>

</html>